package com.dmn.gcode.springchains.operators;

import com.dmn.gcode.springchains.core.AbstractOperator;
import com.dmn.gcode.springchains.core.IChainMaster;
import com.dmn.gcode.springchains.core.In;

/**
 * date 17.01.11
 *
 * @author dvponomarev
 * @version 1.0
 */
public class PrintTextToConsoleOperator extends AbstractOperator {
    private In<String> text;

    public void execute(IChainMaster chainMaster) throws Throwable {
        System.out.println(text.get());
//        throw new IllegalStateException("a");
    }

    public void setText(In<String> text) {
        this.text = text;
    }
}
